import React, { useState, useEffect, memo, FC } from 'react'
import request from '../../utils/request'
import ReactEcharts from 'echarts-for-react'
import {option} from './constan'

interface IProps {}

const home:FC<IProps> = (props) => {
  useEffect(()=>{
    request.get('api/movie/hot')
  },[])
  return (
    <div
      style={{height:'300px'}}
    >
      {/* <ReactEcharts option={option||{}} /> */}
    </div>
  )
}

export default memo(home)